/**
 * Created by XiongXiang on 2017/8/24.
 */
var sign_in = async(ctx, next) => {
    var email = ctx.request.body.email || '',
        pasword = ctx.request.body.password || '';

    if (email === 'admin@123' && pasword === '123456') {
        ctx.render('signin-ok.html',{
            title: 'Sign In Ok',
            name: 'Mr Node'
        });
    }else{
        ctx.render('signin-failed.html',{
            title:'Sign In Failed'
        });
    }
};

module.exports = {
    'POST /signin': sign_in
}